package com.example.work1.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Major {
    private long id;
    private String majorName;
    @Override
    public String toString() {
        return String.format("专业编号: %d, 专业名称: %s", id, majorName);
    }
}
